<?php
/*********************************************************************\
* This File is a part of BH-PANEL (Breizh-Heberg Panel v2.1)
* Copyright (C) 2008-2009 the BH Developpers : Vincent Giersch <mail@vincordi.fr>, Cyprien Laleau <fanning.fr@gmail.com> and Edwin Cabiten <marmottes44@hotmail.fr>
* See file AUTHORS to get more informations

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
/*********************************************************************/


session_start();
if(isset($_POST['ajax'])) {
	define('IN', '1');
	define('REQUEST_AJAX', '1');
	include('../php/lib/servers.php');
	
	$prix = $surmesure['espacedisk'][$_POST['espacedisk']];
	$prix = $prix + $surmesure['bandepassante'][$_POST['bandepassante']];
	$prix = $prix + $surmesure['bases_mysql'][$_POST['bases_mysql']];
	$prix = $prix + $surmesure['comptes_mails'][$_POST['comptes_mails']];
	$prix = $prix + $surmesure['alias_mails'][$_POST['alias_mails']];
	$prix = $prix + $surmesure['user_ftp'][$_POST['user_ftp']];
	$prix = $prix + $surmesure['doms'][$_POST['doms']];
	echo $prix."€/mois";
}
?>